-- GENERATED SPELL FOR [Searing Blade Warlock] --


function spell0_11324(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11324', 3000, 1)
end

function spell1_11324(pUnit, Event) --@Summon Voidwalker,Self--
pUnit:FullCastSpellOnTarget(12746,pUnit)
pUnit:RegisterEvent('Sorts_11324', 563, 1)
end

function Sorts_11324(pUnit, Event)
local choix_sorts_11324 = math.random(0, 1)
if choix_sorts_11324 == 0 then
pUnit:RegisterEvent('spell0_11324', 1, 1)
end
if choix_sorts_11324 == 1 then
pUnit:RegisterEvent('spell1_11324', 1, 1)
end
end

function mob11324_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11324', math.random(1500, 3000), 1)
end

function mob11324_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11324_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11324_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11324, 1, 'mob11324_Action')
RegisterUnitEvent(11324, 2, 'mob11324_Leave')
RegisterUnitEvent(11324, 3, 'mob11324_Kill')
RegisterUnitEvent(11324, 4, 'mob11324_Die')
